int count(char s[])
{
    int i;
    for(i=0;;i++)
        if(s[i]==0)
            break;
    int j,tot=0;
    for(j=0;j<i;j++)
        if(s[j]>='a'&&s[j]<='z')
        ++tot;
    return tot;
}

int main()
{
    printf("%d\n",1==count("a"));
    printf("%d\n",0==count("1234"));
    printf("%d\n",9==count("abcdef123123asd"));
}
